const sky = document.querySelector(".sky");
const skyStyle = getComputedStyle(sky);
const skyWidth = parseFloat(skyStyle.width);
const skyHeight = parseFloat(skyStyle.height);

class Sky extends person{
    constructor(){
        super(skyWidth,skyHeight,0, 0,-100,0,sky);
    }

    onMove(){
        if(this.left <= -skyWidth / 2){
            this.left = 0;
        }
    }
}
